// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 32;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "There is a huge pair of stone towers above you, perched on a stretch of narrow mountains that separate the High Litha from the Kranas Woods. They are crumbling ruins, abandoned by living beings for centuries.";
	text2 = "Yet, they are not quiet. Over the howls of the wind, you can hear the moans of angry lost spirits inside. The towers of Hraxamus are haunted by the angry ghosts of the Rokaj.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "When you get close to the crumbling workshop in this northern valley, you start to see strange things. Squirrels with three tails. Tiny little slime blobs crossing the trail. Birds that watch you a little too intently.";
	text2 = "This means the presence of uncontrolled magic, operated by the crazed and terminally irresponsible. Which means the Erudico are nearby.";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "This stone pylon, thirty feet high, is recent construction. Most of the base is still plain and blank. A few spots are etched with the names of recent Rokaj dead.";
	text2 = "The pylon is completely missing defacement or graffiti. Dried flowers have recently been placed at its base.";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "One of the more affluent clans of the High Litha (although that doesn't mean much) has a large compound here, staked out by a long wooden fence. When you enter, some of their warriors come out to greet you.";
	text2 = "They plainly don't like what they have heard about you. Your response is quiet and cold. No shelter is offered. You soon decide to depart.";
	text3 = "They have heard of you, and, surprisingly, they don't immediately hate you. You are invited in to warm yourself by the fire. Tea and a spartan meal are offered.";
	text4 = "They are not wealthy or powerful folk. They have no treasure or quests to give. Still, it is a nice respite from the hostile wilds.";
	code =
		sf(100 + this_sec,4,1);
		if (gf(80,16) < 110) {
			rs(3); rs(4);
			}
			else rs(2);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "These are not the ordinary beasts of the wild. They are magical constructs, created by careless mages and let loose.";
	text2 = "They have been mindlessly wandering the woods, smashing things and looking for prey. Letting creatures like this loose is incredibly irresponsible. The Erudico are making you clean up their mess.";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "There is an honor guard of ghosts waiting by the path. They were Rokaj warriors from all over the land, dead for at least a century. They watch as you approach Hraxamus.";
	text2 = "When they see who you are, they let out a cacophony of angry, incoherent screeches! For the first time in decades, they try to leave their posts, flowing over the tundra toward you.";
	text3 = "They are too old and fragile, and the effort is too much. They fall apart before they get to you.";
	code =
		cancel_out_fight(0,1);
	break;
	
begintalknode;
	tag = 15;
	condition = 1;
	text1 = "You meet another honor guard of Rokaj ghosts. Again, they recognize you. Again, they hate you.";
	text2 = "However, they don't attack. Instead, they withdraw. They rise into the air and float into the rock, heading into the ruined tower of Hraxamus.";
	code =
		cancel_out_fight(0,1);
	break;

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "Several massive reptiles are returning from the hunt. You can understand why the Lithan hunters fell. They are way bigger than you thought they would be.";
	code =
		set_out_fight_field(5);
	break;
		
begintalknode;
	tag = 17;
	condition = 1;
	text1 = "The beasts are dead. You can search the cave at your leisure.";
	text2 = "Alas, the hunters have no sign of where they came from. Their equipment was torn to bits by the lizards. Their nest does contain a bunch of coins and stolen jewelry, which is nice.";
	text3 = "You also find a ceramic flask, sealed with wax.";
	code =
		change_coins(104,TRUE);
		change_crafting(0,0,0,0,1);
	break;
	
begintalknode;
	tag = 18;
	condition = 1;
	text1 = "You see a band of young hunters of the High Litha. They are running to the south, and they look battered and exhausted.";
	text2 = "You wave at them, trying to get them to slow down. It doesn't work. They run off to the south.";
	code =
	cancel_out_fight(0,1);
	break;
	
begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "You are at the entrance to a trap cave. It's a big hole in the mountain, left here to draw in your less intelligent variety of monster. Then Ro hunters can come by and slay them for glory and wealth.";
	text2 = "There are fresh human tracks in the slush, leading into the cave. No tracks emerge.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(132,9) == 0;
	question = "Enter the cave.";
	text1 = "You light a torch and search the tunnel. The passage doesn't extend into the mountain too far before it opens up into a chamber.";
	text2 = "You find two dead Lithan warriors.";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(132,9) > 0;
	question = "Enter the cave.";
	text1 = "You enter the cave and poke around. No new monsters have taken up residence since you were last here.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Examine them.";
	text1 = "These two hunters were too careless. They have been torn apart by something with fierce claws. As you start your search for anything of value, you hear something.";
	text2 = "Large, snarling creatures are approaching the tunnel entrance behind you.";
	action = END_TALK;
	code =
		sf(132,9,1);
		make_outdoor_enc(114,149,0);
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Leave.";
	text1 = "You decide to leave the trap to more ambitious hunters.";
	action = END_TALK;

	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				